package mapper;

import POJO.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author XW
 * @Date 2022/4/24
 * @Time 8:39
 **/
@Mapper
public interface UserInfoMapper {
    List<UserInfo> selectAll();
    int addUser(UserInfo userInfo);
    int deleteUser(@Param("id") int id);
    int updateUser(UserInfo userInfo);
    List<UserInfo> login(@Param("userName") String userName,@Param("password") String password);
}
